/******************************************************************************
 * phzThread.h - 
 * 
 * Copyright 2011-2016 Guangzhou Timetop Electronics Technology Co.,Ltd.
 * 
 * DESCRIPTION: - 
 *     -
 * modification history
 * 
 * 01a, 12apr2012, Mr. Huanbiao Xie  written
 *
 ******************************************************************************/
#ifndef _PHZTHREAD_H_
#define _PHZTHREAD_H_

#include "Single_Game.h"
#include "Client.h"
//==========================================================
extern CSingleGame g_CSingleGame;
extern int g_EixtThread;
//extern Client * pclient;
//==========================================================
#define THREAD_COUNT 4
class CMyThread
{
public:
	HANDLE	hThread[THREAD_COUNT];
	DWORD dwThreadID[THREAD_COUNT];
	enum eThreadId
	{
		eThreadIdManager=0,
		eThreadIdInteractive,
		eThreadIdSelect,
		eThreadIdNetWork,
	};
public:
	CMyThread();
	~CMyThread();
	void RunAllThread();
	static DWORD ThreadManagerProc(LPVOID lpParameter);
	void RunManagerProc();
	static DWORD ThreadInteractiveProc(LPVOID lpParameter);
	void RunInteractiveProc();
	static DWORD ThreadSelectProc(LPVOID lpParameter);
	void RunSelectProc();	
};



#endif  /* _PHZTHREAD_H_ */

